]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: Only store policies for "real" apps
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 4 Nov 2013 16:45:22 +0000 (11:45 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 4 Nov 2013 16:47:43 +0000 (11:47 -0500)
Fake, window-backed apps should not have a policy for them.

js/ui/notificationDaemon.js

index d75224f7ff0f8ea818c1d6c7bc76179f0d934ac4..214315cc1f8da1b61b76868e4492afff33098c1e 100644 (file)
@@ -582,7 +582,7 @@ const FdoNotificationDaemonSource = new Lang.Class({
     },
 
     _createPolicy: function() {
-        if (this.app) {
+        if (this.app && this.app.get_app_info()) {
             let id = this.app.get_id().replace(/\.desktop$/,'');
             return new MessageTray.NotificationApplicationPolicy(id);
         } else {